package edu.uts.reekie.designer.implementation.edit;

import org.eclipse.draw2d.IFigure;

import edu.uts.reekie.designer.figures.FigureFactory;
import edu.uts.reekie.designer.implementation.figures.ContainerComponentFigure;
import edu.uts.reekie.designer.implementation.figures.*;
import edu.uts.reekie.designer.implementation.model.ContainerComponent;
import edu.uts.reekie.designer.implementation.model.InfrastructureComponent;
import edu.uts.reekie.designer.model.ModelFactory;

public class ContainerComponentEditPart extends ViewComponentEditPart {

	public ContainerComponentEditPart(ModelFactory mf, FigureFactory ff) {
		super(mf, ff);
		setSupportsMultiple(true);
	}

	
	protected IFigure createFigure() {
		ContainerComponentFigure f = new ContainerComponentFigure();
		f.setName(getComponentModel().getName());
		return f;
	}
	ContainerComponent getComponentModel() {
		return (ContainerComponent)getModel();
	}

}
